# 6.7人们
person1 = {'name': 'zhh', "age": 23, "city": "wuhan"}
person2 = {'name': 'gx', "age": 24, "city": "hangzhou"}
person3 = {'name': 'syl', "age": 25, "city": "xian"}
people = [person1, person2, person3]
for person in people:
    print(person)

# 6.9喜欢的地方
favorite_places = {
    'zhh': ['wuhan', 'Shanghai', 'shenzheng'],
    'gu': ['Beijing', 'Shanghai', 'Guangzhou'],
    'syl': ['Beijing', 'Shanghai', 'Guangzhou'],
}

for name, places in favorite_places.items():
    print(f"{name} likes {places}")

# 6.11

cities = {
    'Beijing': {
        'country': 'China',
        'population': 200000000,
        'fact': 'Beijing is good.'
    },
    'Shanghai': {
        'country': 'China',
        'population': 300000000,
        'fact': 'Shanghai is a big city.'
    },
    'Wuhan': {
        'country': 'China',
        'population': 10000000,
        'fact': 'Wuhan is hot".'
    }
}

for city, info in cities.items():
    print(city)
    print('Country:', info['country'])
    print('Population:', info['population'])
    print('Fact:', info['fact'])
    print("\n")